package main

import "fmt"

func main() {
	s1 := make([]int, 3, 5)
	s2 := make([]int, 3, 6)

	fmt.Println(equals(s1, s2))
	s1[1] = 2
	fmt.Println(equals(s1, s2))
	s2[1] = 2
	fmt.Println(equals(s1, s2))
}

func equals(x, y []int) bool {
	if len(x) != len(y) {
		return false
	}
	for i := range x {
		if x[i] != y[i] {
			return false
		}
	}
	return true
}
